package com.cyj.minio.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * @Description: 树形基类
 * @BelongsProject: SpringBoot-MinIO
 * @BelongsPackage: com.cyj.minio.common
 * @Author: ChenYongJia
 * @CreateTime: 2021-09-13 15:00
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Data
@MappedSuperclass
@EqualsAndHashCode(callSuper=false)
public class TreeEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 是否展开 1:是 0：否
     */
    @ApiModelProperty(value = "是否展开 1:是 0：否")
    protected String expand;

    /**
     * 父节点id
     */
    @ApiModelProperty(value = "父节点id")
    protected Long parentId;

    /**
     * 排序 default 0--降序  1--升序
     */
    @ApiModelProperty(value = "排序")
    protected Integer sort;

    /**
     * VARCHAR(255) 节点路径
     */
    @ApiModelProperty(value = "节点路径")
    protected String path;

}
